﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using Business;
using Foundation;

namespace RPGSoundmixer.SoundSuiteExplorer {
    /// <summary>
    /// Der Presenter für den SoundSuiteExplorer
    /// </summary>
    public class SoundSuiteExplorerPresenter : BasePresenter<SoundSuiteExplorerView>{
        
        /// <summary>
        /// Konstruktor, welcher die entgegen genommene View an den Presenter weiterleitet
        /// </summary>
        /// <param name="view"></param>
        public SoundSuiteExplorerPresenter(SoundSuiteExplorerView view)
            : base(view) {                
        }

        /// <summary>
        /// Eine neue SoundSuite sol erstellt werden
        /// </summary>
        /// <param name="name"></param>
        public void createSuite(string name){
            this.model.CreateNewSoundSuite(name);
        }

        /// <summary>
        /// Eine bestehende SoundSuite soll gelöscht werden
        /// </summary>
        /// <param name="soundSuite"></param>
        internal void deleteSuite(Foundation.SoundSuite soundSuite) {
            this.model.DeleteSuite(soundSuite); 
        }

        /// <summary>
        /// Setzt die aktuell gewählte SoundSuite als SoundSuite
        /// </summary>
        /// <param name="currentSuite"></param>
        internal void SetCurrentSuite(SoundSuite currentSuite) {
            this.model.CurrentSoundSuite = currentSuite.Id; 
        }
    }
}
